<template>
    <div>
        <div class="logo2"></div>
        <h1>{{msg}}</h1>
        <ul>
            <li v-for="(key, val) in $device">{{key}}--{{val}}</li>
        </ul>
    </div>
</template>

<script>
    import services from '../services/services'

    export default{
        data(){
            return {
                msg: 'demos1'
            }
        },
        ready(){

//            发起一个http请求
            services.list.get({
                time: Date.now()
            }).then(res => {
                console.log(res)
            })
        },
        components: {}
    }
</script>
<style lang="less" rel="stylesheet/less" scoped>
    @import "../../static/css/Demo";
</style>